#export GOPROXY=https://athens.azurefd.net
export GOPROXY=https://goproxy.io
default: build

build: export GO111MODULE=on
build:
ifeq ("$(WITH_RACE)", "1")
	CGO_ENABLED=1 go build -race -o admin.exe main.go
else
	CGO_ENABLED=0 go build -o admin.exe main.go
endif


tidy:
	@echo "go mod tidy"
	GO111MODULE=on go mod tidy

clean:
	rm -rf bin/*